<?php
/**
* The Header for our index file.
*
* @package fructa
* @since fructa 1.0
*/

?>
<?php 
if (is_page('home')) { 
	get_template_part('index'); 
} else { 
	get_header(); ?>
	<div class="row-fluid <?php if (is_page('company')){echo 'f-company-text-phone';} if (is_page('sustainability')){echo 'f-susteinability-text-phone';} ?> f-susteinability-header  ">
		<div class="span4 <?php if (is_page('company')) echo 'offset8';?>">
			<?php wp_reset_postdata(); ?>
			<h1><?php the_title(); ?></h1>
			<?php the_content(); ?>
		</div>
	</div> <!-- row-fluid f-sustainability-header -->
</div><!-- f-logo-menu -->
</div><!-- f-header -->
<?php
$category = get_the_category();
if($category){
get_template_part($category[0]->slug, 'grid');
}
get_footer();
}
?>